package com.one.group.model.entity;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 问题选项表实体类
 * @author kld
 */
@Data
@Table("sp_question_option")
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class QuestionOption implements Serializable {
    @Id(keyType = KeyType.Auto)
    private Long id; // 选项id
    
    @Column("question_id")
    private Long questionId; // 关联问题id
    
    private String content; // 选项内容
    
    private Integer sort; // 排序，对应0- 1a 2b 3c 4d
    
    @Column(tenantId = true)
    private Long tenantId; // 租户ID
}